<#if entityPackage!="">
package ${entityPackage};
</#if>

<#if jpaSupport>
import javax.persistence.*;
</#if>
import java.io.Serializable;

/**
* Created by ${author} on ${date}.
*/
<#if jpaSupport>
@Entity
@Table(name = "${tableName}", schema = "${schemaName}")
</#if>
public class ${className} implements Serializable {

<#list fields as f>
    <#if jpaSupport>
    @${f.key}
    @Column(name = "${f.fieldText}"<#if f.nullable=="false">, nullable = false</#if>)
    </#if>
private ${f.type} ${f.fieldName};

</#list>
<#list fields as f>
public ${f.type} get${f.funName}() {
return ${f.fieldName};
}

public void set${f.funName}(${f.type} ${f.fieldName}) {
this.${f.fieldName} = ${f.fieldName};
}

</#list>
}
